﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WpfUMLTry1.View
{
    /// <summary>
    /// Interaction logic for MainMenu.xaml
    /// </summary>
    public partial class MainMenu : Page, ISwitchable
    {
        private Int32 _rng;
        Int32 RNG
        {
            get { return _rng; }
            set { _rng = value; }
        }


        public MainMenu()
        {
            InitializeComponent();
            RNG = 5;
        }

        public void UtilizeState(object state)
        {

        }

        private void StartGame_Button_Click(object sender, RoutedEventArgs e)
        {
            Switcher.Switch(new CharSelect(),new ViewModel.CharSelect_VM());
        }

        private void ExitButton_Click(object sender, RoutedEventArgs e)
        {
            Application.Current.Shutdown();
        }

        private void QA_Click(object sender, RoutedEventArgs e)
        {
            Switcher.Switch(new DebugQA());
        }

        private void InformationButton_Click(object sender, RoutedEventArgs e)
        {
            InformationButton.Content = RNG;
            RNG += 1;
        }
    }
}
